﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Webnet.BO.ConfigSteps
{
    public abstract class StepBase
    {
        public event EventHandler<Settings> WizardCompleted;
        public event EventHandler WizardCanceled;
        public Settings Settings { get; set; }

        protected void RaiseWizardCompleted(Settings settings)
        {
            if (WizardCompleted != null)
            {
                WizardCompleted(this, settings);
            }
        }

        protected void RaiseWizardCanceled()
        {
            if (WizardCanceled != null)
            {
                WizardCanceled(this, null);
            }
        }
    }
}
